package cn.k.service;

import cn.k.domain.Permission;
import cn.k.qo.PageResult;
import cn.k.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface IPermissionService {
    void insert(Permission permission);

    void delete(Long id);

    void update(Permission permission);

    Permission get(Long id);

    List<Permission> selectAll();



    List<Permission> selectForList(QueryObject qo);

    PageInfo<Permission> query(QueryObject qo);

    //批量插入
    void batchSave(Set<Permission> permissions);

    List<Permission> queryByRoleId(Long roleId);

    List<String> queryExpressionByEmployeeId(Long employeeId);

    List<String> selectByEmpId(Long id);
}
